<template>
  <nuxt v-if="isLogin"/>

  <div class="page-wrapper" v-else>
    <Header></Header>
    <div class="main">
      <!-- 页面内容 -->
      <nuxt />
    </div>
    <Footer></Footer>
  </div>

</template>
<script>
export default {
  name: "default",
  data() {
    return {
      whiteList: [
        '/login',
      ],
    }
  },
  computed: {
    isLogin() {
      return this.whiteList.includes(this.$route.path)
    },
  },
}
</script>
<style scoped lang="less">
.page-wrapper{
  height: 100vh;
  overflow: hidden;

  .main{
    height: calc(100% - 60px - 60px);
  }
}

</style>
